package com.jiang.dao;

import com.jiang.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StuDao {
    public int getStuCounts(@Param("name")String name);

    public List<Student> getAllStu(@Param("name")String name,@Param("pageStart") int pageStart,@Param("pageSize") int pageSize);

    public int addStu(Student student);

    public int deleteStu(int id);

    public Student getUpdateStu(int id);

    public int updateStu(Student student);
}
